import React from 'react'
import { connect } from 'dva'

function Com(props) {
    const { home } = props
    return (
        <div>
            <h4>
                我是一个组件 -- { home }
            </h4>
        </div>
    )
}

const mapState = (state) => {
    const { home } = state
    return {
        home
    }
}

Com = connect(mapState)(Com)

export default  Com
